package com.supermap.business.cloud.push;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.messaging.simp.SimpMessagingTemplate;
import org.springframework.messaging.simp.annotation.SendToUser;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;

/**
 * @author aqua
 * @description
 * @date 2018年11月30 下午 4:49
 * @email 1301584033@qq.com
 */
@Controller
public class WebSocketController {
//    @Autowired
//    private SimpMessagingTemplate template;
//
//    //广播推送消息
//    @Scheduled(fixedRate = 1000)
//    public void sendTopicMessage() {
//        System.out.println("后台广播推送！");
//
//        this.template.convertAndSend("1"+"/topic/getResponse","链接成果");
//    }



}
